<nav class="navbar navbar-fixed-top navbar-inverse">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="<?= url('') ?>">Dota2</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">饰品竞猜</a></li>
                <li><a href="#about">Dota2直播</a></li>
                <li><a href="#contact">赛事赛程</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="">联系客服</a></li>
                <li><a href="<?= e(route('user.profile')) ?>">我的账户</a></li>
                @if(empty(\Auth::user()))
                    <li><a href="<?= url('login') ?>">Steam 登录</a></li>
                @else
                    <li><a href="javascript:void(0)"><?= \Auth::user()->name ?></a></li>
                    <li><a href="<?= url('logout') ?>">退出</a></li>
                @endif
            </ul>
        </div><!-- /.nav-collapse -->
    </div><!-- /.container -->
</nav>